package com.wu.pojo.response.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel
@Data
public class DepartmentListResponse {

    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "人数")
    private int number;
    @ApiModelProperty(value = "子部门")
    private List<DepartmentListResponse> subList;

    @ApiModelProperty(value = "父id 顶层时为0")
    private Long parentId;
    @ApiModelProperty(hidden = true)
    private Integer level;

}
